package com.ymttest.business.data;

import java.io.IOException;
import java.util.ArrayList;

import com.ymttest.utils.TestDataManager;

public class ENV201806 {
	public static void main(String args[]) throws IOException {
		//ENV201806:select domain from Application where del=0 过滤xlobo
		//ENV201808:6月清理的码头app 剩下的xloboapp 未清理  http://172.16.100.44:8080/view/%E8%B4%9D%E6%B5%B7%E7%A0%94%E5%8F%91/
		ArrayList<String> domains = TestDataManager.getLines("ENV201806");
		for (String domain : domains) {
				String cmd = "cmd /c xcopy E:\\testwork\\Testing\\source\\Script\\" + domain + " E:\\ENV201808\\old\\" + domain + "\\ /s /e";
				System.out.println(cmd);
				Runtime.getRuntime().exec(cmd);
				String cmd2 = "cmd /c xcopy E:\\testwork\\Testing\\source\\Script\\" + domain + " E:\\ENV201808\\update\\" + domain + "\\ /s /e";
				System.out.println(cmd2);
				Runtime.getRuntime().exec(cmd2);
		}

	}
}
